package com.kevin.springcloud.service;

import com.kevin.springcloud.dao.PaymentDao;
import com.kevin.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author kevin
 */
@Service
public class PaymentService {

    @Resource
    private PaymentDao paymentDao ;

    public int create(Payment payment){
        return paymentDao.create(payment);
    };


    public Payment getPaymentById(long id){
        Payment paymentById = paymentDao.getPaymentById(id);
        return paymentById;

    };
}
